<?php /* Smarty version 2.6.26, created on 2015-08-02 17:05:33
         compiled from index.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" href="./Public/Admin/Css/public.css" />
	<script type="text/javascript" src="./Public/Admin/Js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="./Public/Admin/Js/public.js"></script>
</head>

<body>
	<table class="table">
		<tr>
			<td class="th" colspan="20">分类列表 &nbsp;&nbsp;&nbsp;&nbsp;

		<a href="index.php?m=admin&c=category">全部分类</a>
		<?php unset($this->_sections['k']);
$this->_sections['k']['loop'] = is_array($_loop=$this->_tpl_vars['parentsCate']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['k']['name'] = 'k';
$this->_sections['k']['show'] = true;
$this->_sections['k']['max'] = $this->_sections['k']['loop'];
$this->_sections['k']['step'] = 1;
$this->_sections['k']['start'] = $this->_sections['k']['step'] > 0 ? 0 : $this->_sections['k']['loop']-1;
if ($this->_sections['k']['show']) {
    $this->_sections['k']['total'] = $this->_sections['k']['loop'];
    if ($this->_sections['k']['total'] == 0)
        $this->_sections['k']['show'] = false;
} else
    $this->_sections['k']['total'] = 0;
if ($this->_sections['k']['show']):

            for ($this->_sections['k']['index'] = $this->_sections['k']['start'], $this->_sections['k']['iteration'] = 1;
                 $this->_sections['k']['iteration'] <= $this->_sections['k']['total'];
                 $this->_sections['k']['index'] += $this->_sections['k']['step'], $this->_sections['k']['iteration']++):
$this->_sections['k']['rownum'] = $this->_sections['k']['iteration'];
$this->_sections['k']['index_prev'] = $this->_sections['k']['index'] - $this->_sections['k']['step'];
$this->_sections['k']['index_next'] = $this->_sections['k']['index'] + $this->_sections['k']['step'];
$this->_sections['k']['first']      = ($this->_sections['k']['iteration'] == 1);
$this->_sections['k']['last']       = ($this->_sections['k']['iteration'] == $this->_sections['k']['total']);
?>
			<?php if ($this->_sections['k']['last']): ?>
			&gt;&nbsp;<?php echo $this->_tpl_vars['parentsCate'][$this->_sections['k']['index']]['title']; ?>
&nbsp;&nbsp;
			<?php else: ?>
			&gt;&nbsp;<a href="index.php?m=admin&c=category&cid=<?php echo $this->_tpl_vars['parentsCate'][$this->_sections['k']['index']]['cid']; ?>
"><?php echo $this->_tpl_vars['parentsCate'][$this->_sections['k']['index']]['title']; ?>
</a>&nbsp;&nbsp;
			<?php endif; ?>
		<?php endfor; endif; ?>

			</td>
		</tr>
		<tr class="tableTop">
			<td class="tdLittle0 center">展开</td>
			<td class="tdLittle1">ID</td>
			<td>分类名称</td>
			<td class="tdLtitle7">操作</td>
		</tr>
	<?php if ($this->_tpl_vars['category']): ?>	
		<?php $_from = $this->_tpl_vars['category']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
		<tr>
			<!-- <td><a href="javascript:void(0)" class="showPlus"></a></td> -->
			<td><a href="./index.php?m=admin&c=category&cid=<?php echo $this->_tpl_vars['v']['cid']; ?>
" class="showPlus"></a></td>
			<td><?php echo $this->_tpl_vars['v']['cid']; ?>
</td>
			<td><?php echo $this->_tpl_vars['v']['title']; ?>
</td>
			
			<td>
				[<a href="./index.php?m=admin&c=category&a=add_cate&cid=<?php echo $this->_tpl_vars['v']['cid']; ?>
">添加子分类</a>][
				<a href="./index.php?m=admin&c=category&a=edit_cate&cid=<?php echo $this->_tpl_vars['v']['cid']; ?>
">修改</a>][
				<a href="./index.php?m=admin&c=category&a=del_cate&cid=<?php echo $this->_tpl_vars['v']['cid']; ?>
" class="del">删除</a>]
			</td>
		</tr>
		<?php endforeach; endif; unset($_from); ?>
	<?php endif; ?>	
	</table>

</body>
</html>